package pers.cz.job;

import pers.cz.mapper.AutoCollectTestCaseSqlMapper;
import pers.cz.quartz.job.AbstractQuartzJob;
import pers.cz.spring.SpringContextUtil;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Map;

/**
 * @program: PostGirl-panent
 * @description: ClearCollectSqlJob 清空过期数据
 * @author: Cheng Zhi
 * @create: 2022-02-22 22:20
 **/
public class ClearCollectSqlJob extends AbstractQuartzJob {

    @Override
    public void doJob(JobExecutionContext var1, Map params) throws JobExecutionException {

        SpringContextUtil.getBean(AutoCollectTestCaseSqlMapper.class).clearOldData();
    }
}
